<template>
  <div class="flex bot-bar-wrap">
    <div class="bot-bar-item">
      <p><i class="fas fa-person-booth"></i></p>
      <p>客服</p>
    </div>
    <div class="bot-bar-item">
      <p><i class="fas fa-star"></i></p>
      <p>店铺</p>
    </div>
    <div class="bot-bar-item">
      <p><i class="fas fa-home"></i></p>
      <p>收藏</p>
    </div>
    <div class="btn cart-btn" @click="addCart">加入购购物车</div>
    <div class="btn buy-btn">购买</div>
  </div>
</template>

<script>
  export default {
    name: "DetailBotBar",
    methods: {
      addCart() {
        this.$emit('addCart')
      }
    }
  }
</script>

<style  scoped>
  .bot-bar-wrap {
    height: 49px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
  }
    .bot-bar-item {
      width: 16%;
      font-size: 12px;
      color: #333;
      text-align: center;
    }
      i{
        font-size: 14px;
        margin: 4px 0;
        vertical-align: middle;
        text-align: center;
      }

    .btn {
      width: 26%;
      font-size: 13px;
      line-height: 49px;
      text-align: center;
    }
    .cart-btn {
      background-color: #F9CD0B;
      line-height: 49px;
    }
    .buy-btn {
      color: #fff;
      background-color: var(--color-high-text);
    }

</style>